<%@page import="mo.framework.smh.common.securitycode.SecurityCode"%>
<%@page import="javax.imageio.ImageIO"%>
<%@page import="java.awt.Color"%>
<%@page import="java.io.OutputStream"%>
<%@page import="java.awt.image.BufferedImage"%>
<%@page import="java.io.IOException"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%	
	response.setContentType("image/jpeg");
	response.setHeader("Pragma","No-cache");
	response.setHeader("Cache-Control","no-cache");
	response.setDateHeader("Expires", 0);
	SecurityCode code = new SecurityCode();
	code.isBold(true);
	code.setFontSize(20);
	code.setHeight(25);
	code.setWidth(70);
	code.setLineCount(10);
	code.isOnlyNum(false);
	code.setFontColor(new Color(25,77,65));
	code.setBgColor(new Color(206,220,203));
	BufferedImage bi = code.make();
	session.setAttribute("captcha", code.getText());
	ImageIO.write(bi,"JPEG",response.getOutputStream());
	bi.flush();
	response.flushBuffer();
	out.clear();
	out=pageContext.pushBody();
%>

